home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 March / macformat-035.iso / Shareware City / Developers / Extension Shell / Extension.make < prev    next >
Encoding:
Text File  |  1996-01-06  |  1.4 KB  |  53 lines  |  [TEXT/MPS ]

  1. #    File:        Extension.make
  2. #   Target:     Extension
  3. #   Sources:    Extension.a Extension.c Extension.r
  4. #   Created:    Wednesday, Nov. 11, 1992 6:42:32 PM
  5. #
  6. #    Makefile for a printing extension.
  7. #    
  8. #    Dave Hersey
  9. #    Apple Developer Technical Support
  10. #
  11. #    Modified By Dave MacLachlan
  12. #
  13. #    12/01/92 - dmh - Created.
  14. #     4/26/93 - dmh - Updated to use recommended approach to
  15. #                     global data initialization.
  16. #     9/05/93 - dmh - Updated for b2.
  17. #   12/18/93 - dmh - Updated for b3.
  18. #    8/24/94 - dmh - Finalized.
  19. #    01/06/96 - dim - updated for use with CodeWarrior 7
  20.                      should be able to compile using MPW or CodeWarrior
  21. #    Alias to the path for the GX library and interface files.
  22.  
  23. INTPATH = {CIncludes}
  24.  
  25. #    Creator type we'll use:
  26.  
  27. kCreator = 'GExt'
  28.  
  29.  
  30. OBJECTS = Extension.a.o Extension.c.o
  31. AsmOptions        = -sym off -i "{INTPATH}" -case obj
  32. CompileOptions    = -opt full -d applec -b2 -r -i "{INTPATH}"
  33.  
  34. Extension.a.o ƒ Extension.make Extension.a
  35.      Asm {AsmOptions} Extension.a
  36. Extension.c.o ƒ Extension.make Extension.c
  37.      C {CompileOptions} Extension.c
  38.  
  39. Extension ƒƒ Extension.make Extension.r {OBJECTS}
  40.     Link    -ra =resSysHeap,resPurgeable    ∂
  41.             -t 'pext'                        ∂
  42.             -c {kCreator}                    ∂
  43.             -rt pext=0                        ∂
  44.             -sg SEGS                        ∂
  45.             -m __Startup__                    ∂
  46.             {OBJECTS}                        ∂
  47.             "{Libraries}Runtime.o"            ∂
  48. #            "{Libraries}Interface.o"        ∂
  49. #            "{CLibraries}StdClib.o"            ∂
  50.             -o Extension;
  51.     SetFile Extension -a iB;
  52.     Rez -i "{INTPATH}" -rd -o Extension Extension.r -append 
  53.